const Router = require("koa-router");

const {
  findAllPb,
  findOne,
  findLimit,
} = require("../../controllers/web/news.controller");

const router = new Router({ prefix: "/webapi" });

//返回新闻列表
router.get("/news/list", findAllPb);
router.get("/news/list/:id", findOne);
router.get("/news/toplist", findLimit);

module.exports = router;
